package org.dtrd.modules.archive.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.archive.entity.bean.report.PhysicalReport;
import org.dtrd.modules.archive.entity.po.DtrdEntRdArchivePhysical;

/**
@author 萧
@date 2021-10-01 22:47:27
**/
public interface IDtrdEntRdPhysicalService extends IService<DtrdEntRdArchivePhysical> {

    PhysicalReport getPatientPhysicalReport(Integer patientId);

    DtrdEntRdArchivePhysical getPatientPhysical(Integer patientId);

    boolean saveOrUpdateByPatientId(DtrdEntRdArchivePhysical po, Integer patientId);

    /**
     * 新增或修改患者信息
     */
    void saveOrUpdatePatientInfo(Integer patientId, Float height, Float weight);

    DtrdEntRdArchivePhysical getByPatientId(Integer patientId);

    Float getPatientHeight(Integer patientId);

    /**
     * 更新患者的身高体重
     */
    void updatePatientHeightOrWeight(Integer patientId, Integer patientsHeight, Float patientsWeight);

}
